1. /* sdfdpowd.cpp by K.Tsuru */
  2. // function ID 3003 DRADIX
  3. /*******************************
  4. SDouble class x^p
  5. It returns x raised to the p power.
  6. x^p = exp(p*log(x)) for x > 0
  7. *******************************/
  8. #ifndef SN_H
  9. #include "sn.h"
  10. #endif
  11. SDouble DpowD(const SDouble& x, const SDouble& p){
  12. if(x.Sign(3003) <= 0) x.SetError(x.DOMAIN_ERR,"DpowD", 3003);
  13. SDouble a;
  14. a = p*Log(x);
  15. return Exp(a);
  16. }

sdfdpowd.cpp : last modifiled at 2016/01/23 13:29:21(425 bytes)
created at 2017/10/07 10:22:50
The creation time of this html file is 2017/10/07 11:29:39 (Sat Oct 07 11:29:39 2017).